import { Entity, PrimaryGeneratedColumn, Column, PrimaryColumn } from "typeorm";

@Entity()
export class Socket {
    @PrimaryColumn()
    hash: string;

    @Column()
    host: string;

    @Column()
    port: number;

    @Column()
    prevHash: string;

    @Column()
    timestamp: number;

    @Column({
        default: 1
    })
    status: number;

}
